package org.example.crm.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.crm.base.BaseMapper;
import org.example.crm.model.CustomerOrder;
import org.springframework.stereotype.Component;

import java.util.Map;

@Mapper
@Component
public interface CustomerOrderMapper extends BaseMapper<CustomerOrder, Integer> {

    CustomerOrder selectForTableByCustomerId(Integer id);

    Map<String, Object> queryByOrderId(Integer orderId);

    CustomerOrder queryCustomerLastOrderByCustomerId(Integer id);
}